/*jslint browser: true, cap: false, glovar: false, passfail: false, undef: false, white: false */
/*global SONGHAY YAHOO */

var SONGHAY =
{
    ui:{},

    canEnhance: function()
    {
        var bln = false;

        if(document.createElement)
        {
            var arr = [];
            var element = document.createElement('div',true);
            if (element.appendChild && document.createTextNode)
            {
                //This will set innerHTML:
                element.appendChild(document.createElement('span',true));
            }
            
            if (
                arr.sort &&
                arr.reverse &&
                document.getElementById &&
                element.cloneNode &&
                element.getElementsByTagName &&
                element.innerHTML &&
                element.replaceChild) { bln = true; }

            /*
                FUNKYKB: document.getElementById() and 
                element.getElementsByTagName()
                are replaced by YAHOO.util.Dom.getElementsBy()
            */
        }

        return bln;
    }
};
